namespace Digitalmes.Application.Mes;

/// <summary>
/// 设备表
/// </summary>
public sealed class EquipItemDto : Dto
{
    /// <summary>
    /// 设备编号
    /// </summary>
    [Required, NotNull]
    [StringLength(64)]
    public string? EquipCode { get; set; } 

    /// <summary>
    /// 设备名称
    /// </summary>
    [Required, NotNull]
    [StringLength(64)]
    public string? EquipName { get; set; } 

    /// <summary>
    /// 设备型号
    /// </summary>
    public string? EquipModel { get; set; } 

    /// <summary>
    /// 设备类型（1=>设备，2=>工装，3=>模具）
    /// </summary>
    public EquipTypeEnum EquipType { get; set; }

    public string EquipTypeDesc => EquipType.Description();

    /// <summary>
    /// 生产厂家
    /// </summary>
    public string? Manufactor { get; set; } 

    /// <summary>
    /// 所属产线Id
    /// </summary>
    public long LineId { get; set; } 

    /// <summary>
    /// 所属产线编号
    /// </summary>
    public string? LineCode { get; set; } 

    /// <summary>
    /// 所属工位Id
    /// </summary>
    public long OpId { get; set; } 

    /// <summary>
    /// 所属工位编号
    /// </summary>
    public string? OpCode { get; set; } 

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string? CreateUser { get; set; } 

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; } 

    /// <summary>
    /// 修改人
    /// </summary>
    public string? UpdateUser { get; set; } 
}